package top.fzqblog.test

/**
 * Created by 抽离 on 2017/7/31 0031.
 */
/**
 * 密封类子类只允许写在密封类内部
 */
sealed class SealedClassTest{
    class A(val x :Int?) :SealedClassTest(){
        fun say(){
            System.out.println("x：" + x)
        }
    }

    class B(val y: Int?) : SealedClassTest()

}
